package com.woniuxy.house.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.entity.house.SecondhouseComment;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liangyu
 * @since 2021-03-19
 */
public interface SecondhouseCommentService extends IService<SecondhouseComment> {

    // 根据二手房id查询评论
    Page<SecondhouseComment> findCommentsBySId(int sid,int current,int size);

    // 根据经纪人id查询评论
    Page<SecondhouseComment> findCommentsByBId(int bid,int current,int size);
    // 根据id软删除评论
    boolean deleteOneById(int id);

}
